<template>
  <view>
    <list :list="course"></list>
  </view>
</template>

<script>
import list from "../comopnents/list";
import request from "../utils/util";
export default {
  components: {
    list,
  },
  data(){
    return {
course:[],
    }
  },
  onLoad() {
    this.listData();
  },
  methods: {
    async listData() {
      const res = await request({
        url: "course/list",
      });
      console.log(res, 2222);
      this.course=res.data.message
    },
  },
};
</script>

<style lang="less" scoped>
</style>
